<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Support\Carbon;

/**
 * App\Models\ProductSku
 *
 * @property int $id
 * @property string $title
 * @property int|null $sort 排序，数字越大越靠前。
 * @property float $origin_price 原价
 * @property float|null $sold_price 售价
 * @property int $stock 库存
 * @property int|null $real_sold_num 真实销量
 * @property int|null $show_sold_num 展示用销量
 * @property int $product_id 商品id
 * @property Carbon|null $created_at
 * @property Carbon|null $updated_at
 * @property Carbon|null $deleted_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ProductSku newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ProductSku newQuery()
 * @method static \Illuminate\Database\Query\Builder|\App\Models\ProductSku onlyTrashed()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ProductSku query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ProductSku whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ProductSku whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ProductSku whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ProductSku whereOriginPrice($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ProductSku whereProductId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ProductSku whereRealSoldNum($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ProductSku whereShowSoldNum($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ProductSku whereSoldPrice($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ProductSku whereSort($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ProductSku whereStock($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ProductSku whereTitle($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ProductSku whereUpdatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Models\ProductSku withTrashed()
 * @method static \Illuminate\Database\Query\Builder|\App\Models\ProductSku withoutTrashed()
 * @mixin \Eloquent
 */
class ProductSku extends Model
{
    use SoftDeletes;
    protected $fillable = ['product_id','title','origin_price','sold_price','stock','show_sold_num','attributeValue'];
}
